<div class="col-2 bg-white border-right nav-left p-0">
    <% if (user.role == 2 || user.role == 3) { %>
        <div class="row text-center mt-3 px-5">
            <a href="/admin/article/add" class="btn btn-primary rounded-0 col">出题</a>
        </div>
    <% } %>
    <div class="list-group list-group-flush border-top border-bottom mt-3 text-center">
        <li class="list-group-item list-group-item-action">
            <a href="/admin/" class="text-decoration-none text-secondary">
                <i class="iconfont icon-home pr-1"></i>个人中心
            </a>
        </li>
        <% if (user.role == 2||user.role == 3) { %>

            <li class="list-group-item list-group-item-action">
                <a href="/admin/article/my/<%=user.tid %>" class="text-decoration-none text-secondary">
                    <i class="iconfont icon-neirongguanli pr-1"></i>我的出题
                </a>
            </li>
            <% if (user.role ==2) { %>

                <li class="list-group-item list-group-item-action">
                    <a href="/admin/article/" class="text-decoration-none text-secondary">
                        <i class="iconfont icon-neirongguanli pr-1"></i>选题管理
                    </a>
                </li>
             
                <li class="list-group-item list-group-item-action">
                    <a href="/admin/category/" class="text-decoration-none text-secondary">
                        <i class="iconfont icon-leimuguanli pr-1"></i>方向管理
                    </a>
                </li>
            <% } %>
        <% } %>
        <% if (user.role == 4) { %>
            <li class="list-group-item list-group-item-action">
                <a href="/admin/mytopic/<%= user.uid %>" class="text-decoration-none text-secondary">
                    <i class="iconfont icon-zhanghuguanli pr-1"></i>我的选题
                </a>
            </li>
        <% } %>
        <% if (user.role == 1) { %>
         
            <li class="list-group-item list-group-item-action">
                <a href="/admin/account/" class="text-decoration-none text-secondary">
                    <i class="iconfont icon-zhanghuguanli pr-1"></i>导入文件
                </a>
            </li>
        <% } %>
    </div>
</div>